深度学习mindspore 您所在的位置:网站首页 new image vision什么意思 深度学习mindspore

深度学习mindspore

2024-07-08 09:08| 来源: 网络整理| 查看: 265

class   mindspore.dataset.transforms.vision.c_transforms.Rescale(rescale, shift)[source]

Tensor operation to rescale the input image.

Parameters

rescale (float) – Rescale factor.

shift (float) – Shift factor.

这个函数的意思很多种:

        1,  rescale是尺度变化的意思。   图像的大小按照, rescale的比例进行缩放。  按照shift的位置左右平移。比如说:256*256的图像大小。 如果rescale = 0.5 的话。  图像缩小到 128*128.

        2,  另外一种是图像缩放。  是对图像的数值进行操作的。 按照rescale,shift 的比例进行数值操作。 那么



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有